var url = getRoot() + "/dataxlog/tofindparam";
$(document).ready(function(){
	var ltsTable = $("#optlog-table-container").ltsTable({
        url: url,
        templateId: 'optlog-table'
    });
	
	$(document).on("click", "#searchBtn", function () {
        var params = {};
        $.each($('#optlog-query-form').find(".form-control"), function () {
            var name = $(this).attr("name");
            if(isNull(name)){
                return true;
            }
            var value = $(this).val();
            if(!isNull(value)){
                value = $.trim(value);
                params[name] = value;
            }
        });
        params['startTime'] = $("#startDatetime").val();
        params['endTime'] = $("#endDatetime").val();
        ltsTable.post(params, 1);
    });
	
	/*$("#searchBtn").trigger("click");*/
})